﻿<template>
    <div class="application">
        <el-form>
            <table border="1" style="text-align: center  ; border-collapse: collapse">
                <tr>
                    <td style="width: 800px;height: 50px" colspan="2">活动名称：
                        <el-select v-model="returnedApplyInfo.marketingName" placeholder="请选择">
                            <el-option v-for="item in marketingName2"
                                       :label="item.marketingName"
                                       :value="item.marketingName"></el-option>
                        </el-select>
                    </td>
                    <td style="width: 800px" colspan="2">
                        <el-date-picker v-model="returnedApplyInfo.marketingDate" type="datetime"
                                        placeholder="选择日期时间">
                        </el-date-picker>
                    </td>
                </tr>
                <tr>
                    <td colspan="4" style="height: 50px">
                        <el-button round type="primary">选择活动</el-button>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <el-table :data="pageDate" style="width: 100%">
                            <el-table-column fixed prop="giftId" label="赠品编号" width="200"></el-table-column>
                            <el-table-column prop="giftName" label="赠品名字" width="200"></el-table-column>
                            <el-table-column prop="giftModel" label="赠品型号" width="200"></el-table-column>
                            <el-table-column prop="giftColour" label="赠品颜色" width="200"></el-table-column>
                            <el-table-column prop="giftNum" label="赠品数量" width="200"></el-table-column>
                            <el-table-column prop="returnedNum" label="活动赠品数量" width="200"></el-table-column>
                            <el-table-column prop="Status" label="剩余数量" width="200"></el-table-column>
                        </el-table>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td style="height: 50px" colspan="4">领取方式：
                        <el-select v-model="returnedApplyInfo.getWay" placeholder="请选择">
                            <el-option label="现场领取" :value="1"></el-option>
                            <el-option label="邮寄" :value="2"></el-option>
                        </el-select>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td style="height: 100px" colspan="4">退库申请备注：
                        <el-input type="textarea" v-model="returnedApplyInfo.applyPostscript"
                                  style="width: 400px"
                                  :rows="4"
                                  maxlength="100" show-word-limit>
                        </el-input>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
                <tr>
                    <td style="height: 50px" colspan="4">
                        <el-button round type="primary" @click="save">保存</el-button>
                        <el-button round type="info" @click="backtrack">返回</el-button>
                    </td>
                    <td></td>
                    <td></td>
                    <td></td>
                </tr>
            </table>
        </el-form>
    </div>
</template>

<script>
    import brand from './ReturnedApply.js'

    export default brand;
</script>

<style scoped lang="sass">
    @import "ReturnedApply.scss"
</style>